package com.arpa.wms.cancel.delivery;

import com.arpa.wms.cancel.DeliveryCancelHandlerTypeConstants;
import com.arpa.wms.domain.entity.Delivery;
import com.arpa.wms.service.IDeliveryService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

/**
 * 待分配订单取消处理
 * 1、更新订单状态作废；
 * @author leo
 */
@Log4j2
@Component(DeliveryCancelHandlerTypeConstants.UN_DISTRIBUTION)
public class UnDistributionCancelHandler extends AddDeliveryCancelHandler {

    /**
     * 待分配订单取消
     * 直接更新订单状态为作废
     * @author liuxr
     * @date 2021/6/10 8:51
     * @param deliveryService 订单service对象
     * @param delivery 订单信息
     * @return boolean
     */
    @Override
    public boolean handle(IDeliveryService  deliveryService, Delivery delivery) {
        return super.handle(deliveryService,delivery);
    }


}
